package com.prj.ufdm.demo.tutorial.despatterns.structural.proxy.dynamicproxy;
/**
  * 测试JAVA的 Proxy 类实现
 * @author Administrator
 *
 */
public class ProxyTest {

	public static void main(String[] args) {
		
		CalculatorService target = new CalculatorServiceImpl();
		
		CalculatorService calculatorService = new ProxyCalculator(target).getCalculatorServiceProxy();
		
		calculatorService.Minus(1, 1);
	}
}
